﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/AdminTemplate.Master" AutoEventWireup="true"
    CodeBehind="PaymentHistory.aspx.cs" Inherits="RealtorsPortal.AdminCP.PaymentHistory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Payment history</title>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            //set option
            $("#navheadReports").addClass("selected");
            $("#mnuReports").css("display", "block");
            $(".submenu li a[title='Payment transaction history']").css({ "color": "#fff", "background": "#222", "border": "1px solid #333" });

        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        Payment history</h1>
    <fieldset>
        <div>
            From:
            <asp:TextBox ID="txtFrom" runat="server" placeholder="mm/dd/yyyy"></asp:TextBox>
            To:
            <asp:TextBox ID="txtTo" runat="server" placeholder="mm/dd/yyyy"></asp:TextBox>

            <asp:CheckBox ID="chkIsExpired" runat="server" style="margin-left: 20px" /> Expired Ads

            <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="submit" Style="float: none;"
                OnClick="lbtnSearch_Click">GO</asp:LinkButton>

            
        </div>
    </fieldset>
    <asp:GridView ID="grvPaymentHistory" runat="server" AutoGenerateColumns="False" Width="100%"
        DataKeyNames="SubId" AllowPaging="True" PageSize="5" OnPageIndexChanging="grvPaymentHistory_PageIndexChanging"
        AllowSorting="True" OnSorting="grvPaymentHistory_Sorting" 
        onrowcommand="grvPaymentHistory_RowCommand">
        <HeaderStyle CssClass="header_gridview" />
        <Columns>
            <asp:CheckBoxField />
            <asp:TemplateField HeaderText=" ID ">
                <ItemTemplate>
                    <%# Eval("SubId")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" Date ">
                <ItemTemplate>
                    <%# Eval("SubDate")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" Username ">
                <ItemTemplate>
                    <%# Eval("Username")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" Service ">
                <ItemTemplate>
                    <%# Eval("PackageName")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" Price ">
                <ItemTemplate>
                    <%# Eval("Price")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" Is paid ">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Eval("IsPaid")%>' Enabled="false" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" Actions ">
                <ItemTemplate>
                    <asp:LinkButton ID="lbtnBrowse" runat="server" CommandName="Browse" CommandArgument='<%# DataBinder.Eval(Container, "RowIndex") %>'>
                        Adv detail
                    </asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle CssClass="pager_gridview" Width="50px" />
    </asp:GridView>
    <asp:Label ID="Label1" runat="server" Text="Display: "></asp:Label><asp:DropDownList
        ID="ddlPageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
        <asp:ListItem>5</asp:ListItem>
        <asp:ListItem>10</asp:ListItem>
        <asp:ListItem>20</asp:ListItem>
    </asp:DropDownList>
</asp:Content>
